<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>模板字符串</title>
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
</head>
<body>
    <div id="app">
    </div>

    <script>
        const name="Vue";
        const message=`Hello,${name}!`;
        console.log(message);
        const multiLineText=`
        这是一个
        多行的字符串
        使用模板字符串实现
        `
        console.log(multiLineText);
        const price=200;
        const taxRate=0.15;
        const total=`总价为:${price*(1+taxRate)}`;
        console.log(total);
    </script>
</body>
</html>
